package com.forezp.thinking;

/**
 * Created by forezp on 2017/11/28.
 */
public class IncrTest {

    public static void main(String[] args) {
//        int i=1;
//        println("i:"+ i);
//        println("++i:"+ ++i);
//        println("i++:"+ i++);
//        println("i:"+ i);
//        println("--i:"+ --i);
//        println("i--:"+ i--);
//        println("i:"+ i);

        int num=10;
        System.out.println(Integer.toBinaryString(num));

        num=num<<1;//*2
        System.out.println(num);
        System.out.println(Integer.toBinaryString(num));

        int num2=10;
        num2=num2>>1;// div2
        System.out.println(num2);
        System.out.println(Integer.toBinaryString(num2));

        int num3=10;
        num3=num3>>>1;//
        System.out.println(num3);
        System.out.println(Integer.toBinaryString(num3));

    }

    public static void println(Object o){
        System.out.println(o);
    }
}
